<template>
	<view :style="themeColor">
		<view class="page">
			<view
				class="flex flex-wrap align-center justify-between benben-position-layout flex informationAuthentications_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center informationAuthentications_fd0_0' @tap.stop="handleJumpDiy"
					data-type="back" data-url="1">
					<image class='informationAuthentications_fd0_0_c0' mode="aspectFit" :src='STATIC_URL+"94.png"'>
					</image>
				</view>
				<text class='informationAuthentications_fd0_1'>认证信息</text>
				<view class='flex flex-wrap align-center informationAuthentications_fd0_0'>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!--地址选择器开始 -->
			<benben-picker ref="benbenWritePickerCodepicker1" :visible.sync="pickerDiy1680050534749"
				:label.sync='dataMessage.store_location' mode='region' :mask-show='true' :picker-height='88'
				:hide-area='false'>
				<template #picker-header>
					<view class='flex flex-wrap align-center justify-between informationAuthentications_picker1_0'>
						<text class='informationAuthentications_picker1_0_c0'
							@tap="$refs.benbenWritePickerCodepicker1.cancel()">取消</text>
						<text class='informationAuthentications_picker1_0_c1'>选择所在地区</text>
						<text class='informationAuthentications_picker1_0_c2'
							@tap="$refs.benbenWritePickerCodepicker1.pickerConfirm()">确定</text>
					</view>
				</template>
			</benben-picker>
			<!--地址选择器结束 -->
			<!---认证信息flex布局开始-->
			<view class="flex flex-direction align-stretch benben-flex-layout" v-if=" switchID=='1'">
				<view class='flex flex-direction flex-wrap align-stretch informationAuthentications_fd2_0'>
					<view class='flex flex-direction align-stretch justify-between informationAuthentications_fd2_0_c0'>
						<text class='informationAuthentications_fd2_0_c0_c0'>申请信息</text>
						<view class='flex flex-wrap align-center'>
							<benben-select-diy ref="showSelectPopup1686793981723"
								class-name='flex align-center justify-between flex informationAuthentications_fd2_0_c0_c1_c0'
								:items.sync="Application_type" v-model="Application_id" default-type="value"
								default-label="name" :allow-cancel='false' type="radio" :disabled='false'
								@change="aaa()">
								<template v-for='(item,key0) in Application_type'>
									<view v-if="item.isSelected"
										class='flex align-center justify-center flex informationAuthentications_fd2_0_c0_c1_c0_c0'
										:key="key0" @tap="$refs.showSelectPopup1686793981723.tapHandle(key0)">
										<text
											class='informationAuthentications_fd2_0_c0_c1_c0_c0_c0'>{{item.name}}</text>
									</view>
									<view v-else
										class='flex align-center justify-center flex informationAuthentications_fd2_0_c0_c1_c0_c1'
										:key="key0" @tap="$refs.showSelectPopup1686793981723.tapHandle(key0)">
										<text
											class='informationAuthentications_fd2_0_c0_c1_c0_c1_c0'>{{item.name}}</text>
									</view>
								</template>
							</benben-select-diy>
						</view>
					</view>
				</view>
				<view class='flex flex-wrap align-center informationAuthentications_fd2_1'>
				</view>
				<view class='flex flex-direction align-stretch informationAuthentications_fd2_2'
					v-if="Application_id=='1'">
					<view class='flex align-center justify-between informationAuthentications_fd2_2_c0'>
						<text class='informationAuthentications_fd2_2_c0_c0'>*</text>
						<text class='informationAuthentications_fd2_2_c0_c1'>公司名称</text>
						<benben-input class='flex-sub informationAuthentications_fd2_2_c0_c2' type="text"
							:placeholder="`请输入公司名称`" confirm-type="done" :maxlength="50"
							placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx"
							v-model="dataMessage.company_name" />
					</view>
					<view class='flex align-center informationAuthentications_fd2_2_c1'
						@tap.stop="pickerDiy1680050534749=true">
						<text class='informationAuthentications_fd2_2_c0_c0'>*</text>
						<text class='informationAuthentications_fd2_2_c1_c1'>公司所在地</text>
						<benben-input class='informationAuthentications_fd2_2_c1_c2' type="text" :placeholder="`请选择`"
							confirm-type="done" :maxlength="-1" :adjust-position='true' :disabled='true'
							placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx"
							v-model="dataMessage.store_location" />
						<image class='informationAuthentications_fd2_2_c1_c3' mode="aspectFit"
							:src='STATIC_URL+"2.png"'></image>
					</view>
					<view class='flex align-center justify-between informationAuthentications_fd2_2_c1'>
						<text class='informationAuthentications_fd2_2_c0_c0'>*</text>
						<text class='informationAuthentications_fd2_2_c0_c1'>公司详细地址</text>
						<benben-input class='flex-sub informationAuthentications_fd2_2_c0_c2' type="text"
							:placeholder="`请输入公司详细地址`" confirm-type="done" :maxlength="50"
							placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx"
							v-model="dataMessage.company_address" />
					</view>
					<view class='flex align-center justify-between informationAuthentications_fd2_2_c1'>
						<text class='informationAuthentications_fd2_2_c0_c0'>*</text>
						<text class='informationAuthentications_fd2_2_c0_c1'>统一社会信用码</text>
						<benben-input class='flex-sub informationAuthentications_fd2_2_c0_c2' type="text"
							:placeholder="`请输入统一社会信用码`" confirm-type="done" :maxlength="18"
							placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx"
							v-model="dataMessage.credit_code" />
					</view>
					<view class='flex align-center justify-between informationAuthentications_fd2_2_c1'>
						<text class='informationAuthentications_fd2_2_c0_c0'>*</text>
						<text class='informationAuthentications_fd2_2_c4_c1'>营业执照</text>
						<view class='flex flex-wrap align-center'>
							<view class="upload position-relative">
								<image class=" informationAuthentications_fd2_2_c4_c2_c0_image" mode="aspectFill"
									@tap="soloChooseImage('business_licence','business_licence',dataMessage,dataMessage)"
									:src="dataMessage.business_licence ? dataMessage.business_licence : STATIC_URL+'97.png'">
								</image>
							</view>
						</view>
					</view>
					<view class='flex align-center justify-between informationAuthentications_fd2_2_c5'>
						<text class='informationAuthentications_fd2_2_c0_c0'>*</text>
						<text class='informationAuthentications_fd2_2_c0_c1'>法定经营范围</text>
						<benben-input class='flex-sub informationAuthentications_fd2_2_c0_c2' type="text"
							:placeholder="`请输入法定经营范围`" confirm-type="done" :maxlength="200"
							placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx"
							v-model="dataMessage.range" />
					</view>
				</view>
				<view class='flex flex-wrap align-center informationAuthentications_fd2_1' v-if="Application_id=='1'">
					<view class='flex flex-wrap align-center'>
					</view>
				</view>
				<view class='flex flex-direction align-stretch informationAuthentications_fd2_2'
					v-if="Application_id=='1'">
					<view class='flex align-center justify-between informationAuthentications_fd2_2_c1'>
						<text class='informationAuthentications_fd2_2_c0_c0'>*</text>
						<text class='informationAuthentications_fd2_2_c0_c1'>法人姓名</text>
						<benben-input class='flex-sub informationAuthentications_fd2_2_c0_c2' type="text"
							:placeholder="`请输入法人姓名`" confirm-type="done" :maxlength="50"
							placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx"
							v-model="dataMessage.legal_name" />
					</view>
					<view class='flex align-center justify-between informationAuthentications_fd2_2_c1'>
						<text class='informationAuthentications_fd2_2_c0_c0'>*</text>
						<text class='informationAuthentications_fd2_2_c0_c1'>法人手机</text>
						<benben-input class='flex-sub informationAuthentications_fd2_2_c0_c2' type="number"
							:placeholder="`请输入法人手机号`" confirm-type="done" :maxlength="11"
							placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx"
							v-model="dataMessage.legal_tel" />
					</view>
					<view class='flex align-center justify-between informationAuthentications_fd2_2_c1'>
						<text class='informationAuthentications_fd2_2_c0_c0'>*</text>
						<text class='informationAuthentications_fd2_2_c0_c1'>法人身份证</text>
						<benben-input class='flex-sub informationAuthentications_fd2_2_c0_c2' type="idcard"
							:placeholder="`请输入法人身份证号`" confirm-type="done" :maxlength="18"
							placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx"
							v-model="dataMessage.legal_idcard" />
					</view>
					<view class='flex align-center justify-between informationAuthentications_fd2_4_c3'>
						<text class='informationAuthentications_fd2_2_c0_c0'>*</text>
						<text class='informationAuthentications_fd2_2_c1_c1'>法人身份证国徽面</text>
						<view class='flex flex-direction align-center justify-between'>
							<view class="upload position-relative">
								<image class=" informationAuthentications_fd2_2_c4_c2_c0_image" mode="aspectFill"
									@tap="soloChooseImage('legal_front','legal_front',dataMessage,dataMessage)"
									:src="dataMessage.legal_front ? dataMessage.legal_front : STATIC_URL+'97.png'">
								</image>
							</view>
						</view>
					</view>
					<view class='flex align-center justify-between informationAuthentications_fd2_4_c3'>
						<text class='informationAuthentications_fd2_2_c0_c0'>*</text>
						<text class='informationAuthentications_fd2_2_c1_c1'>法人身份证人像面</text>
						<view
							class='flex flex-direction align-center justify-between informationAuthentications_fd2_4_c4_c2'>
							<view class="upload position-relative">
								<image class=" informationAuthentications_fd2_2_c4_c2_c0_image" mode="aspectFill"
									@tap="soloChooseImage('legal_opposite','legal_opposite',dataMessage,dataMessage)"
									:src="dataMessage.legal_opposite ? dataMessage.legal_opposite : STATIC_URL+'97.png'">
								</image>
							</view>
						</view>
					</view>
				</view>
				<view class='flex flex-direction align-stretch informationAuthentications_fd2_5'
					v-if="Application_id=='2'">
					<view class='flex align-center justify-between informationAuthentications_fd2_2_c1'>
						<text class='informationAuthentications_fd2_2_c0_c0'>*</text>
						<text class='informationAuthentications_fd2_2_c0_c1'>联系人姓名</text>
						<benben-input class='flex-sub informationAuthentications_fd2_2_c0_c2' type="text"
							:placeholder="`请输入联系人姓名`" confirm-type="done" :maxlength="50"
							placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx"
							v-model="dataMessage.contacts_name" />
					</view>
					<view class='flex align-center justify-between informationAuthentications_fd2_2_c1'>
						<text class='informationAuthentications_fd2_2_c0_c0'>*</text>
						<text class='informationAuthentications_fd2_2_c0_c1'>联系人手机</text>
						<benben-input class='flex-sub informationAuthentications_fd2_2_c0_c2' type="number"
							:placeholder="`请输入联系人手机`" confirm-type="done" :maxlength="11"
							placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx"
							v-model="dataMessage.contacts_phone" />
					</view>
					<view class='flex align-center justify-between informationAuthentications_fd2_2_c1'>
						<text class='informationAuthentications_fd2_2_c0_c0'>*</text>
						<text class='informationAuthentications_fd2_2_c0_c1'>联系人身份证号</text>
						<benben-input class='flex-sub informationAuthentications_fd2_2_c0_c2' type="idcard"
							:placeholder="`请输入联系人身份证号`" confirm-type="done" :maxlength="18"
							placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx"
							v-model="dataMessage.idcard_no" />
					</view>
					<view class='flex align-center justify-between informationAuthentications_fd2_5_c3'>
						<text class='informationAuthentications_fd2_2_c0_c0'>*</text>
						<text class='informationAuthentications_fd2_2_c1_c1'>联系人身份证国徽面</text>
						<view
							class='flex flex-direction align-center justify-between informationAuthentications_fd2_5_c3_c2'>
							<view class="upload position-relative">
								<image class=" informationAuthentications_fd2_2_c4_c2_c0_image" mode="aspectFill"
									@tap="soloChooseImage('idcard_front','idcard_front',dataMessage,dataMessage)"
									:src="dataMessage.idcard_front ? dataMessage.idcard_front : STATIC_URL+'97.png'">
								</image>
							</view>
						</view>
					</view>
					<view class='flex align-center justify-between informationAuthentications_fd2_5_c3'>
						<text class='informationAuthentications_fd2_2_c0_c0'>*</text>
						<text class='informationAuthentications_fd2_2_c1_c1'>联系人身份证人像面</text>
						<view
							class='flex flex-direction align-center justify-between informationAuthentications_fd2_5_c3_c2'>
							<view class="upload position-relative">
								<image class=" informationAuthentications_fd2_2_c4_c2_c0_image" mode="aspectFill"
									@tap="soloChooseImage('idcard_reverse','idcard_reverse',dataMessage,dataMessage)"
									:src="dataMessage.idcard_reverse ? dataMessage.idcard_reverse : STATIC_URL+'97.png'">
								</image>
							</view>
						</view>
					</view>
				</view>
			</view>

			<!---认证信息flex布局结束-->
			<!---店铺信息flex布局开始-->
			<view class="flex flex-direction align-stretch benben-flex-layout informationAuthentications_flex_3"
				v-if="switchID=='2'">
				<view class='flex align-center justify-between informationAuthentications_fd3_0'>
					<text class='informationAuthentications_fd3_0_c0'>*</text>
					<text class='informationAuthentications_fd3_0_c1'>店铺名称</text>
					<benben-input class='flex-sub informationAuthentications_fd3_0_c2' type="text"
						:placeholder="`请输入店铺名称`" confirm-type="done" :maxlength="50"
						placeholder-style="color:rgba(187, 187, 187, 1);font-size:32rpx"
						v-model="dataMessage.store_name" />
				</view>
				<view class='flex align-center informationAuthentications_fd3_0'>
					<text class='informationAuthentications_fd3_0_c0'>*</text>
					<text class='informationAuthentications_fd3_1_c1'>店铺logo</text>
					<text class='informationAuthentications_fd3_1_c2'>(72*72)</text>
					<view class="upload position-relative">
						<image class=" informationAuthentications_fd3_1_c3_image" mode="aspectFill"
							@tap="soloChooseImage('store_logo','store_logo',dataMessage,dataMessage)"
							:src="dataMessage.store_logo ? dataMessage.store_logo : STATIC_URL+'91.png'"></image>
					</view>
				</view>
				<view class='flex flex-direction align-stretch informationAuthentications_fd3_2'>
					<view class='flex flex-wrap align-center informationAuthentications_fd3_2_c0'>
						<text class='informationAuthentications_fd3_0_c0'>*</text>
						<text class='informationAuthentications_fd3_1_c1'>店铺背景</text>
						<text class='informationAuthentications_fd3_1_c2'>(375*135)</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<benben-images-upload ref="benbenImagesUploadfd3_2_c1_c0" :img-list.sync="store_backdropList"
							:img-ids.sync="dataMessage.store_backdrop" :maxlength="9">
							<template #content="{ num, maxlength, isShow, imgList }">
								<view class="flex flex-wrap align-start flex">
									<view v-for="(image, index) in imgList" :key="index"
										class='flex position-relative informationAuthentications_fd3_2_c1_c00'>
										<text
											class='fu-iconfont2 position-absolute informationAuthentications_fd3_2_c1_c000'
											@tap.stop="$refs.benbenImagesUploadfd3_2_c1_c0.delImage(index)">&#xE8E7;</text>
										<image class='informationAuthentications_fd3_2_c1_c001'
											@tap.stop="$refs.benbenImagesUploadfd3_2_c1_c0.previewImage(index)"
											mode="aspectFill" :src='image'></image>
									</view>
									<image class='informationAuthentications_fd3_2_c1_c01'
										@tap.stop="$refs.benbenImagesUploadfd3_2_c1_c0.manyChooseImage()" v-if="isShow"
										mode="aspectFill" :src='STATIC_URL+"97.png"'></image>
								</view>
							</template>
						</benben-images-upload>
					</view>
				</view>
				<view class='flex align-center justify-between informationAuthentications_fd3_0'
					@tap.stop="pickerDiy1712125035857=true">
					<text class='informationAuthentications_fd3_0_c0'>*</text>
					<text class='informationAuthentications_fd3_3_c1'>店铺所在地</text>
					<benben-input class='informationAuthentications_fd3_3_c2' type="text" :placeholder="`请选择`"
						confirm-type="done" :maxlength="-1" :adjust-position='true' :disabled='true'
						placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx"
						v-model="dataMessage.location" />
					<image class='informationAuthentications_fd3_3_c3' mode="aspectFit" :src='STATIC_URL+"2.png"'>
					</image>
				</view>
				<view class='flex flex-direction align-stretch justify-between informationAuthentications_fd3_0'>
					<view class='flex flex-wrap align-center informationAuthentications_fd3_2_c0'>
						<text class='informationAuthentications_fd3_0_c0'>*</text>
						<text class='informationAuthentications_fd3_1_c1'>店铺详细地址</text>
					</view>
					<view class='flex flex-wrap informationAuthentications_fd3_4_c1'>
						<textarea class='flex informationAuthentications_input_fd3_4_c1' confirm-type="done"
							:placeholder="'请输入详细地址'" :maxlength="240"
							placeholder-style="color:rgba(191, 191, 191, 1);font-size:28rpx"
							v-model="dataMessage.store_address" />

					</view>
				</view>
				<view class='flex flex-direction align-stretch justify-between informationAuthentications_fd3_0'>
					<view class='flex flex-wrap align-center informationAuthentications_fd3_2_c0'>
						<text class='informationAuthentications_fd3_0_c0'>*</text>
						<text class='informationAuthentications_fd3_1_c1'>店铺详细简介</text>
					</view>
					<view class='flex flex-wrap informationAuthentications_fd3_4_c1'>
						<textarea class='flex informationAuthentications_input_fd3_4_c1' confirm-type="done"
							:placeholder="'请输入店铺简介'" :maxlength="240"
							placeholder-style="color:rgba(191, 191, 191, 1);font-size:28rpx"
							v-model="dataMessage.store_introduce" />

					</view>
				</view>
				<view class='flex align-center justify-between informationAuthentications_fd3_0'>
					<text class='informationAuthentications_fd3_0_c0'>*</text>
					<text class='informationAuthentications_fd3_3_c1'>营业时间</text>
					<view class='flex flex-wrap align-center informationAuthentications_fd3_6_c2'
						@tap.stop="pickerDiy1712130828215=true">
						<benben-input class='flex-sub informationAuthentications_fd3_6_c2_c0' type="text"
							:placeholder="`开始时间`" confirm-type="done" :maxlength="-1" :disabled='true'
							placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx"
							v-model="dataMessage.business_hours" />
					</view>
					<text class='informationAuthentications_fd3_1_c1'>至</text>
					<view class='flex flex-wrap align-center informationAuthentications_fd3_6_c4'
						@tap.stop="pickerDiy1712130716722=true">
						<benben-input class='flex-sub informationAuthentications_fd3_6_c4_c0' type="text"
							:placeholder="`结束时间`" confirm-type="done" :maxlength="-1" :disabled='true'
							placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx"
							v-model="dataMessage.end_time" />
					</view>
				</view>
				<view class='flex align-center justify-between informationAuthentications_fd3_0'>
					<text class='informationAuthentications_fd3_0_c0'>*</text>
					<text class='informationAuthentications_fd3_1_c1'>客服电话</text>
					<benben-input class='flex-sub informationAuthentications_fd3_0_c2' type="number"
						:placeholder="`请输入客服电话`" confirm-type="done" :maxlength="11"
						placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx"
						v-model="dataMessage.service_phone" />
				</view>
			</view>

			<!---店铺信息flex布局结束-->
			<!--开始时间选择器开始 -->
			<benben-picker ref="benbenWritePickerCodepicker4" :visible.sync="pickerDiy1712130828215"
				:value.sync='dataMessage.business_hours' mode='time' :mask-show='true' :timeout='true'
				:picker-height='88' :current='true' :second='false'>
				<template #picker-header>
					<view class='flex flex-wrap align-center justify-between informationAuthentications_picker4_0'>
						<text class='informationAuthentications_picker4_0_c0'
							@tap="$refs.benbenWritePickerCodepicker4.cancel()">取消</text>
						<text class='informationAuthentications_picker4_0_c1'>请选择开始时间</text>
						<text class='informationAuthentications_picker4_0_c2'
							@tap="$refs.benbenWritePickerCodepicker4.pickerConfirm()">确认</text>
					</view>
				</template>
			</benben-picker>
			<!--开始时间选择器结束 -->
			<!--结束时间选择器开始 -->
			<benben-picker ref="benbenWritePickerCodepicker5" :visible.sync="pickerDiy1712130716722"
				:value.sync='dataMessage.end_time' mode='time' :mask-show='true' :timeout='true' :picker-height='88'
				:current='true' :second='false'>
				<template #picker-header>
					<view class='flex flex-wrap align-center justify-between informationAuthentications_picker5_0'>
						<text class='informationAuthentications_picker5_0_c0'
							@tap="$refs.benbenWritePickerCodepicker5.cancel()">取消</text>
						<text class='informationAuthentications_picker5_0_c1'>请选择开始时间</text>
						<text class='informationAuthentications_picker5_0_c2'
							@tap="$refs.benbenWritePickerCodepicker5.pickerConfirm()">确认</text>
					</view>
				</template>
			</benben-picker>
			<!--结束时间选择器结束 -->
			<!--店铺所在地选择器开始 -->
			<benben-picker ref="benbenWritePickerCodepicker6" :visible.sync="pickerDiy1712125035857"
				:label.sync='dataMessage.location' mode='region' :mask-show='true' :picker-height='88'
				:hide-area='false'>
				<template #picker-header>
					<view class='flex flex-wrap align-center justify-between informationAuthentications_picker6_0'>
						<text class='informationAuthentications_picker6_0_c0'
							@tap="$refs.benbenWritePickerCodepicker6.cancel()">取消</text>
						<text class='informationAuthentications_picker6_0_c1'>选择地址</text>
						<text class='informationAuthentications_picker6_0_c2'
							@tap="$refs.benbenWritePickerCodepicker6.pickerConfirm()">确定</text>
					</view>
				</template>
			</benben-picker>
			<!--店铺所在地选择器结束 -->
			<view
				class="flex align-center justify-between benben-position-layout flex informationAuthentications_flex_7">
				<button class='informationAuthentications_fd7_0' @tap.stop="handleJumpDiy" data-type="back" data-url="1"
					v-if=" switchID=='1'">上一步</button><button class='informationAuthentications_fd7_0'
					@tap.stop="switchNextStepFunc()" v-if=" switchID=='2'">上一步</button>
				<button class='informationAuthentications_fd7_1' @tap.stop="postDataFunc(1)"
					v-if=" switchID=='1'">下一步</button><button class='informationAuthentications_fd7_1'
					@tap.stop="postDataFunc(2)" v-if=" switchID!='1'">提交</button>

			</view>
			<view :style="{height: '128rpx'}"></view>


		</view>
	</view>
</template>
<script>
	import UploadImage from '@/common/utils/upload-image.js'
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"pickerDiy1712125035857": false,
				"pickerDiy1712130716722": false,
				"pickerDiy1712130828215": false,
				"pickerDiy1680050534749": false,
				"Application_type": [{
					"name": "公司",
					"value": "1",
					"image": ""
				}, {
					"name": "个人",
					"value": "2",
					"image": ""
				}],
				"Application_id": "1",
				"addressLabel": "请选择省市区",
				"dataMessage": {
					"aid": "",
					"member_id": "",
					"member_account": "",
					"member_name": "",
					"person": "",
					"idcard_no": "",
					"province_idc": "",
					"province_name": "",
					"city_id": "",
					"city_name": "",
					"district_id": "",
					"district_name": "",
					"address": "",
					"store_province_id": "",
					"store_province_name": "",
					"store_city_id": "",
					"store_city_name": "",
					"store_district_id": "",
					"store_district_name": "",
					"store_address": "",
					"contacts_name": "",
					"contacts_phone": "",
					"idcard_front": "",
					"idcard_reverse": "",
					"store_name": "",
					"store_logo": "",
					"business_licence": "",
					"joinin_state": "",
					"joinin_message": "",
					"range": "",
					"reason": "",
					"merchant_ratio": "",
					"apply_type": "",
					"company_name": "",
					"company_province_id": "",
					"company_city_id": "",
					"company_district_id": "",
					"company_address": "",
					"credit_code": "",
					"store_level": "",
					"main_industry": "",
					"stay_time": "",
					"pay_img": "",
					"pay_remarks": "",
					"pay_money": "",
					"pay_time": "",
					"run_type": "",
					"expiration_time": "",
					"store_backdrop": "",
					"service_phone": "",
					"store_introduce": "",
					"workday": "",
					"business_hours": "",
					"enter_money": "",
					"qualification_certificate": "",
					"create_time": "",
					"true_name": "",
					"account_id": "",
					"qrcode": "",
					"bank_branch": "",
					"bank_address": "",
					"run_type_id": "",
					"main_industry_id": "",
					"stay_time_id": "",
					"company_province_name": "",
					"company_city_name": "",
					"company_district_name": "",
					"company_address_id": "",
					"legal_name": "",
					"legal_tel": "",
					"legal_idcard": "",
					"legal_front": "",
					"legal_opposite": "",
					"store_location": "",
					"account_type": "",
					"service_fee": "",
					"location": "",
					"end_time": ""
				},
				"shopList": [],
				"store_backdropList": [],
				"shopLable": "",
				"shopValue": "",
				"switchID": "1",
				"id": ""
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
			/**
			 * @returns 
			 * Android       安卓
			 * IOS       苹果
			 * Web       H5 或 pc
			 * Wechat       微信小程序
			 * Alipay       支付宝小程序
			 * Baidu       百度小程序
			 * ByteBounce       抖音小程序
			 * 360       360小程序
			 * FastApp       快应用
			 */
			appSystemIdentification() {
				return this.$store.state.appSystemIdentification
			}
		},
		watch: {},
		onLoad(options) {
			let {
				id
			} = options
			if (id !== undefined) this.id = id
			this.getSettleFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//上传单图、多图方法
			soloChooseImage(id, path, obj, obj1, fnName = false) {
				if (!this.setCheckPermission(2)) {
					return
				}
				let self = this
				if (!obj) obj = this
				if (!obj1) obj1 = this
				if (self.uploading) {
					return
				}
				// 从相册中选择图片
				uni.chooseImage({
					count: 1, // 默认3
					sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图，默认二者都有
					success: function(res) {
						self.uploading = true
						// 开始上传
						new UploadImage(res.tempFiles, {
							complete: function(res) {
								self.uploading = false
								if (id) self.$set(obj, id, res[0].id)
								if (path) self.$set(obj1, path, res[0].path)
								if (fnName) self[fnName]()
							},
						})
					},
				})
			},
			//提交商家认证信息
			async postDataFunc(type) {
				if (this.Application_id == '1' && this.switchID == '1') {
					if (!validate(this.dataMessage.company_name, 'require')) {
						this.$message.info('公司名称不能为空');
						return false;
					}
					if (!validate(this.dataMessage.store_location, 'require')) {
						this.$message.info('公司所在地不能为空');
						return false;
					}
					if (!validate(this.dataMessage.company_address, 'require')) {
						this.$message.info('公司详情地址不能为空');
						return false;
					}
					if (!validate(this.dataMessage.credit_code, 'require')) {
						this.$message.info('统一社会信用码不能为空');
						return false;
					}
					if (!validate(this.dataMessage.business_licence, 'require')) {
						this.$message.info('营业执照不能为空');
						return false;
					}
					if (!validate(this.dataMessage.range, 'require')) {
						this.$message.info('经营范围不能为空');
						return false;
					}
					if (!validate(this.dataMessage.legal_name, 'require')) {
						this.$message.info('法人姓名不能为空');
						return false;
					}
					if (!validate(this.dataMessage.legal_tel, 'require')) {
						this.$message.info('法人手机号不能为空');
						return false;
					}
					if (!validate(this.dataMessage.legal_tel, 'phone')) {
						this.$message.info('法人手机格式不正确');
						return false;
					}
					if (!validate(this.dataMessage.legal_idcard, 'require')) {
						this.$message.info('法人身份证不能为空');
						return false;
					}
					if (!validate(this.dataMessage.legal_idcard, 'idcard')) {
						this.$message.info('法人身份证格式不正确');
						return false;
					}
					if (!validate(this.dataMessage.legal_front, 'require')) {
						this.$message.info('法人身份证国徽面不能为空');
						return false;
					}
					if (!validate(this.dataMessage.legal_opposite, 'require')) {
						this.$message.info('法人身份证人像面不能为空');
						return false;
					}
					this.switchNextStepFunc()
				} else if (this.Application_id == '2' && this.switchID == '1') {
					if (!validate(this.dataMessage.contacts_name, 'require')) {
						this.$message.info('联系人姓名不能为空');
						return false;
					}
					if (!validate(this.dataMessage.contacts_phone, 'require')) {
						this.$message.info('联系人手机不能为空');
						return false;
					}
					if (!validate(this.dataMessage.contacts_phone, 'phone')) {
						this.$message.info('联系人手机格式不正确');
						return false;
					}
					if (!validate(this.dataMessage.idcard_no, 'require')) {
						this.$message.info('联系人身份证不能为空');
						return false;
					}
					if (!validate(this.dataMessage.idcard_no, 'idcard')) {
						this.$message.info('联系人身份证格式不正确');
						return false;
					}
					if (!validate(this.dataMessage.idcard_front, 'require')) {
						this.$message.info('联系人身份证国徽面不能为空');
						return false;
					}
					if (!validate(this.dataMessage.idcard_reverse, 'require')) {
						this.$message.info('联系人身份证人像面不能为空');
						return false;
					}
					this.switchNextStepFunc()
				}
				if (this.switchID == '2' && type == '2') {
					if (!validate(this.dataMessage.store_name, 'require')) {
						this.$message.info('店铺名称不能为空');
						return false;
					}
					if (!validate(this.dataMessage.store_logo, 'require')) {
						this.$message.info('请上传店铺logo');
						return false;
					}
					if (!validate(this.dataMessage.store_backdrop, 'require')) {
						this.$message.info('请上传店铺背景');
						return false;
					}
					if (!validate(this.dataMessage.location, 'require')) {
						this.$message.info('请选择店铺所在地');
						return false;
					}
					if (!validate(this.dataMessage.store_address, 'require')) {
						this.$message.info('店铺详细地址不能为空');
						return false;
					}
					if (!validate(this.dataMessage.store_introduce, 'require')) {
						this.$message.info('店铺简介不能为空');
						return false;
					}
					if (!validate(this.dataMessage.business_hours, 'require')) {
						this.$message.info('请选择营业开始时间');
						return false;
					}
					if (!validate(this.dataMessage.end_time, 'require')) {
						this.$message.info('请选择营业结束时间');
						return false;
					}
					if (!validate(this.dataMessage.service_phone, 'require')) {
						this.$message.info('客服电话不能为空');
						return false;
					}
					//请求方法
					//数据验证

					let data62bd90cc2f5d0 = await this.$api.dbPost(global.apiUrls.post62bd90cc2f5d0, {
						apply_type: this.Application_id,
						contacts_name: this.dataMessage.contacts_name,
						contacts_phone: this.dataMessage.contacts_phone,
						idcard_no: this.dataMessage.idcard_no,
						idcard_front: this.dataMessage.idcard_front,
						idcard_reverse: this.dataMessage.idcard_reverse,
						company_name: this.dataMessage.company_name,
						company_address: this.dataMessage.company_address,
						business_licence: this.dataMessage.business_licence,
						range: this.dataMessage.range,
						credit_code: this.dataMessage.credit_code,
						legal_name: this.dataMessage.legal_name,
						legal_tel: this.dataMessage.legal_tel,
						legal_idcard: this.dataMessage.legal_idcard,
						legal_front: this.dataMessage.legal_front,
						legal_opposite: this.dataMessage.legal_opposite,
						store_location: this.dataMessage.store_location,
						store_name: this.dataMessage.store_name,
						store_logo: this.dataMessage.store_logo,
						store_address: this.dataMessage.store_address,
						store_backdrop: this.dataMessage.store_backdrop,
						store_introduce: this.dataMessage.store_introduce,
						service_phone: this.dataMessage.service_phone,
						business_hours: this.dataMessage.business_hours,
						location: this.dataMessage.location,
						end_time: this.dataMessage.end_time
					});
					if (!data62bd90cc2f5d0) return
					if (data62bd90cc2f5d0.data.code != 1) {
						this.$message.info(data62bd90cc2f5d0.data.msg);
						return
					}
					this.$urouter.navigateTo(`/pages/login/revieweds/revieweds`);
				}
			},
			//获取入驻信息
			async getSettleFunc() {
				if (this.id == '1') {
					//请求方法
					//数据验证

					let datadataMessage = await this.$api.get(global.apiUrls.post62be7019e6ae4, {

					});

					if (datadataMessage.data.code != 1) {
						this.$message.info(datadataMessage.data.msg);
						return
					}
					let infodataMessage = datadataMessage.data;
					this.dataMessage = infodataMessage.data
					this.Application_id = this.dataMessage.apply_type;
				}
			},
			//清空
			aaa() {
				console.log(this.dataMessage.legal_name, this.dataMessage.legal_tel, '22222222222222222');
				this.dataMessage.legal_name = ''
				this.dataMessage.legal_tel = ''
				this.dataMessage.contacts_name = ''
				this.dataMessage.contacts_phone = ''
			},
			//切换下一步
			switchNextStepFunc() {
				if (this.switchID == '1') {
					this.switchID = '2';
				} else {
					this.switchID = '1';
				}
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto;
	}

	.informationAuthentications_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.informationAuthentications_fd0_1 {
		color: #333333;
		font-size: 36rpx;
		font-weight: 500;
		line-height: 50rpx;
	}

	.informationAuthentications_fd0_0_c0 {
		width: 20rpx;
		height: 36rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		margin: 0rpx 0rpx 0rpx 32rpx;
	}

	.informationAuthentications_fd0_0 {
		width: 100rpx;
		height: 88rpx;
	}

	.informationAuthentications_picker1_0_c2 {
		color: rgba(227, 29, 26, 1);
		font-size: 32rpx;
		font-weight: 500;
		line-height: 45rpx;
	}

	.informationAuthentications_picker1_0_c1 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 500;
		line-height: 45rpx;
	}

	.informationAuthentications_picker1_0_c0 {
		color: #BFBFBF;
		font-size: 32rpx;
		font-weight: 500;
		line-height: 45rpx;
	}

	.informationAuthentications_picker1_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		padding: 0rpx 32rpx 0rpx 32rpx;
		border-radius: 25rpx 25rpx 0rpx 0rpx;
		background-size: 100% auto !important;
		height: 110rpx;
	}

	.informationAuthentications_fd2_5_c3_c2 {
		background: #fff;
		padding: 0rpx 0rpx 0rpx 0rpx;
		background-size: 100% auto !important;
	}

	.informationAuthentications_fd2_5_c3 {
		border-bottom: 1px solid rgba(238, 238, 238, 1);
		background: #fff;
		background-size: 100% auto !important;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.informationAuthentications_fd2_5 {
		background: #fff;
		background-size: 100% auto !important;
		padding: 0rpx 32rpx 0rpx 32rpx;
		margin: 0rpx 0rpx 20rpx 0rpx;
	}

	.informationAuthentications_fd2_4_c4_c2 {
		background: #fff;
		background-size: 100% auto !important;
	}

	.informationAuthentications_fd2_4_c3 {
		border-bottom: 1px solid rgba(238, 238, 238, 1);
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.informationAuthentications_fd2_2_c5 {
		background: #fff;
		padding: 32rpx 0rpx 32rpx 0rpx;
		background-size: 100% auto !important;
	}

	.informationAuthentications_fd2_2_c4_c2_c0_image {
		width: 160rpx;
		height: 160rpx;
	}

	.informationAuthentications_fd2_2_c4_c1 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 400;
		margin: 0rpx auto 24rpx 0rpx;
	}

	.informationAuthentications_fd2_2_c1_c3 {
		width: 12rpx;
		height: 22rpx;
	}

	.informationAuthentications_fd2_2_c1_c2 {
		text-align: right;
		font-size: 32rpx;
		font-weight: 400;
		color: var(--benbenFontColor0);
		margin: 0rpx 24rpx 0rpx 32rpx;
	}

	.informationAuthentications_fd2_2_c1_c1 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 400;
		line-height: 40rpx;
		margin: 0rpx auto 0rpx 0rpx;
	}

	.informationAuthentications_fd2_2_c1 {
		border-bottom: 1px solid #eee;
		background: #fff;
		padding: 32rpx 0rpx 32rpx 0rpx;
		background-size: 100% auto !important;
	}

	.informationAuthentications_fd2_2_c0_c2 {
		text-align: right;
		font-size: 32rpx;
		font-weight: 400;
		color: #333;
		margin: 0rpx 0rpx 0rpx 32rpx;
	}

	.informationAuthentications_fd2_2_c0_c1 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 400;
		line-height: 40rpx;
	}

	.informationAuthentications_fd2_2_c0_c0 {
		font-size: 28rpx;
		font-weight: 400;
		color: rgba(255, 40, 40, 1);
		margin: 0rpx 8rpx 0rpx 0rpx;
	}

	.informationAuthentications_fd2_2_c0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		background-size: 100% auto !important;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.informationAuthentications_fd2_2 {
		background: #fff;
		background-size: 100% auto !important;
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.informationAuthentications_fd2_1 {
		background: #F8F8F8;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		height: 16rpx;
	}

	.informationAuthentications_fd2_0_c0_c1_c0_c1_c0 {
		color: #000000;
		font-size: 30rpx;
		font-weight: 400;
		line-height: 42rpx;
	}

	.informationAuthentications_fd2_0_c0_c1_c0_c1 {
		background: rgba(246, 246, 246, 1);
		width: 327rpx;
		height: 80rpx;
		line-height: 80rpx;
		background-size: 100% auto !important;
	}

	.informationAuthentications_fd2_0_c0_c1_c0_c0_c0 {
		color: #fff;
		font-size: 30rpx;
		font-weight: 400;
		line-height: 42rpx;
	}

	.informationAuthentications_fd2_0_c0_c1_c0_c0 {
		background: #E31D1A;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		width: 327rpx;
		height: 80rpx;
	}

	::v-deep .informationAuthentications_fd2_0_c0_c1_c0 {
		width: 686rpx;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		padding: 4rpx 0rpx 4rpx 4rpx;
	}

	.informationAuthentications_fd2_0_c0_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 400;
		line-height: 40rpx;
		margin: 0rpx 0rpx 24rpx 0rpx;
	}

	.informationAuthentications_fd2_0_c0 {
		background: #fff;
		background-size: 100% auto !important;
		padding: 32rpx 0rpx 34rpx 0rpx;
	}

	.informationAuthentications_fd2_0 {
		background: #fff;
		background-size: 100% auto !important;
		padding: 0rpx 32rpx 0rpx 32rpx;
		margin: 0rpx 0rpx 0rpx 0rpx;
	}

	.informationAuthentications_flex_3 {
		background: #fff;
		background-size: 100% auto !important;
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.informationAuthentications_fd3_6_c4_c0 {
		text-align: right;
		font-size: 32rpx;
		font-weight: 400;
		color: #333;
		width: 135rpx;
	}

	.informationAuthentications_fd3_6_c4 {
		margin: 0rpx 0rpx 0rpx 24rpx;
	}

	.informationAuthentications_fd3_6_c2_c0 {
		text-align: right;
		font-size: 32rpx;
		font-weight: 400;
		color: #333;
		width: 200rpx;
	}

	.informationAuthentications_fd3_6_c2 {
		margin: 0rpx 24rpx 0rpx 0rpx;
	}

	.informationAuthentications_input_fd3_4_c1 {
		width: 100%;
		font-size: 28rpx;
		font-weight: 400;
		color: #333;
		height: 160rpx;
	}

	.informationAuthentications_fd3_4_c1 {
		background: rgba(246, 247, 249, 1);
		width: 686rpx;
		background-size: 100% auto !important;
		padding: 24rpx 24rpx 24rpx 24rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.informationAuthentications_fd3_3_c3 {
		width: 12rpx;
		height: 22rpx;
	}

	.informationAuthentications_fd3_3_c2 {
		text-align: right;
		font-size: 32rpx;
		font-weight: 400;
		color: var(--benbenFontColor0);
		margin: 0rpx 24rpx 0rpx 32rpx;
	}

	.informationAuthentications_fd3_3_c1 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 400;
		line-height: 40rpx;
		margin: 0rpx auto 0rpx 0rpx;
	}

	.informationAuthentications_fd3_2_c1_c01 {
		width: 180rpx;
		height: 180rpx;
		margin: 0rpx 24rpx 24rpx 0rpx;
		border-radius: 16rpx;
	}

	.informationAuthentications_fd3_2_c1_c001 {
		width: 180rpx;
		height: 180rpx;
		border-radius: 16rpx;
	}

	.informationAuthentications_fd3_2_c1_c000 {
		top: 0rpx;
		right: 0rpx;
		z-index: 10;
		color: #ff5536;
	}

	.informationAuthentications_fd3_2_c1_c00 {
		margin: 0rpx 24rpx 24rpx 0rpx;
	}

	.informationAuthentications_fd3_2_c0 {
		margin: 0rpx 0rpx 32rpx 0rpx;
	}

	.informationAuthentications_fd3_2 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 8rpx 0rpx;
	}

	.informationAuthentications_fd3_1_c3_image {
		width: 180rpx;
		height: 180rpx;
	}

	.informationAuthentications_fd3_1_c2 {
		color: #929292;
		font-size: 26rpx;
		font-weight: 400;
		line-height: 37rpx;
		margin: 0rpx auto 0rpx 14rpx;
	}

	.informationAuthentications_fd3_1_c1 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 400;
		line-height: 40rpx;
	}

	.informationAuthentications_fd3_0_c2 {
		margin: 0rpx 0rpx 0rpx 32rpx;
		text-align: right;
		font-size: 32rpx;
		font-weight: 400;
		color: #333;
	}

	.informationAuthentications_fd3_0_c1 {
		color: #2A2A2A;
		font-size: 32rpx;
		font-weight: 400;
		line-height: 42rpx;
	}

	.informationAuthentications_fd3_0_c0 {
		color: var(--benbenFontColor5);
	}

	.informationAuthentications_fd3_0 {
		border-bottom: 1px solid #eee;
		padding: 30rpx 0rpx 30rpx 0rpx;
	}

	.informationAuthentications_picker4_0_c2 {
		color: rgba(227, 29, 26, 1);
		font-size: 32rpx;
		font-weight: 400;
	}

	.informationAuthentications_picker4_0_c1 {
		font-size: 32rpx;
		font-weight: 400;
		color: #333;
		line-height: 45rpx;
	}

	.informationAuthentications_picker4_0_c0 {
		font-size: 32rpx;
		font-weight: 400;
		color: #333;
	}

	.informationAuthentications_picker4_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		padding: 0rpx 32rpx 0rpx 32rpx;
		border-radius: 24rpx 24rpx 0rpx 0rpx;
		background-size: 100% auto !important;
		height: 110rpx;
	}

	.informationAuthentications_picker5_0_c2 {
		color: rgba(227, 29, 26, 1);
		font-size: 32rpx;
		font-weight: 400;
	}

	.informationAuthentications_picker5_0_c1 {
		font-size: 32rpx;
		font-weight: 400;
		color: #333;
		line-height: 45rpx;
	}

	.informationAuthentications_picker5_0_c0 {
		font-size: 32rpx;
		font-weight: 400;
		color: #333;
	}

	.informationAuthentications_picker5_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		padding: 0rpx 32rpx 0rpx 32rpx;
		border-radius: 24rpx 24rpx 0rpx 0rpx;
		background-size: 100% auto !important;
		height: 110rpx;
	}

	.informationAuthentications_picker6_0_c2 {
		color: rgba(227, 29, 26, 1);
		font-size: 32rpx;
		font-weight: 400;
		line-height: 40rpx;
	}

	.informationAuthentications_picker6_0_c1 {
		font-size: 36rpx;
		font-weight: 400;
		color: #333;
		line-height: 40rpx;
	}

	.informationAuthentications_picker6_0_c0 {
		font-size: 32rpx;
		font-weight: 400;
		color: #333;
	}

	.informationAuthentications_picker6_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		padding: 0rpx 32rpx 0rpx 32rpx;
		border-radius: 25rpx 25rpx 0rpx 0rpx;
		background-size: 100% auto !important;
		height: 110rpx;
	}

	.informationAuthentications_flex_7 {
		background: rgba(248, 248, 248, 1);
		width: 750rpx;
		height: 128rpx;
		overflow: hidden;
		z-index: 10;
		bottom: calc(0rpx + var(--window-bottom));
		background-size: 100% auto !important;
	}

	.informationAuthentications_fd7_1 {
		background: #E31D1A;
		border-radius: 100rpx 100rpx 100rpx 100rpx;
		font-size: 32rpx;
		color: var(--benbenFontColor3);
		width: 328rpx;
		height: 88rpx;
		line-height: 88rpx;
		font-weight: 500;
		margin: 0rpx 32rpx 0rpx 0rpx;
	}

	.informationAuthentications_fd7_0 {
		border: 1px solid var(--benbenbdColor0);
		background: #fff;
		border-radius: 100rpx 100rpx 100rpx 100rpx;
		font-size: 32rpx;
		color: var(--benbenFontColor0);
		width: 328rpx;
		height: 88rpx;
		line-height: 88rpx;
		font-weight: 500;
		margin: 0rpx 0rpx 0rpx 32rpx;
	}
</style>